/*
 * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Description: diag cmd for mocked shell.
 */

#ifndef __DIAG_CMD_SHELL_H__
#define __DIAG_CMD_SHELL_H__

#ifdef CONFIG_SUPPORT_MOCKED_SHELL
#include "soc_zdiag.h"
#include "td_base.h"

typedef ext_errno (*diag_sh_handler)(td_u16 cmd_id, td_pvoid cmd_param, td_u16 cmd_param_size, diag_option *option);

typedef struct {
    diag_sh_handler run_sh;
} diag_shell_api;

td_void diag_shell_api_register(diag_shell_api *api);

ext_errno diag_cmd_mocked_shell(td_u16 cmd_id, td_pvoid cmd_param, td_u16 cmd_param_size, diag_option *option);

#endif
#endif
